package com.suneee.store.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@Entity
@Table(name = "t_spu")
public class Spu implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6663307539812461544L;
	
	/**
	 * spuId
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="spu_id",nullable=false)
	private Integer spuId;
	
	/**
	 * 企业编码
	 */
	@Column(name="enterprise_code",nullable=false)
	private String enterpriseCode;
	
	/**
	 * 企业spu
	 */
	@Column(name="category_id",nullable=false)
	private String categoryId;
	
	/**
	 * 企业spu
	 */
	@Column(name="brand_id")
	private Integer brandId;
	
	/**
	 * 商品标题
	 */
	@Column(name="enterprise_spu")
	private String enterpriseSpu;
	
	/**
	 * 市场价
	 */
	@Column(name="title")
	private String title;
	
	/**
	 * 类目ID
	 */
	@Column(name="market_price")
	private Float marketPrice;
	
	/**
	 * 规格一
	 */
	@Column(name="spec_id_one")
	private Integer specIdOne;
	
	/**
	 * 规格二
	 */
	@Column(name="spec_id_two")
	private Integer specIdTwo;
	
	/**
	 * 规格三
	 */
	@Column(name="spec_id_three")
	private Integer specIdThree;
	
	/**
	 * 规格四
	 */
	@Column(name="spec_id_four")
	private Integer specIdFour;
	
	/**
	 * 规格一选项值
	 */
	@Column(name="spec_one_value")
	private String specOneValue;
	
	/**
	 * 规格二选项值
	 */
	@Column(name="spec_two_value")
	private String specTwoValue;
	
	/**
	 * 规格三选项值
	 */
	@Column(name="spec_three_value")
	private String specThreeValue;
	
	/**
	 * 规格四选项值
	 */
	@Column(name="spec_four_value")
	private String specFourValue;
	
	@Column(name="advice_price")
	private Float advicePrice;
	
	@Column(name="total")
	private Integer total;
	
	@Column(name="from_type")
	private Integer fromType;
	
	@Column(name="purchase_price") //采购价
	private Integer purchasePrice;
	
	@Column(name="create_user")
	private Integer createUser;
	
	@Column(name="update_user")
	private Integer updateUser;
	
	@Column(name="create_time")
	private Timestamp createTime;
	
	@Column(name="update_time")
	private Timestamp updateTime;
	
	/**
	 * 状态
	 */
	@Column(name="status")
	private Integer status; 
	
	/**
	 * 拥有的sku数组
	 */
	@Transient
	private List<Sku> skuList;
	
	@Transient
	private String specOneName;
	
	@Transient
	private String specTwoName;
	
	@Transient
	private String specThreeName;
	
	@Transient
	private String specFourName;
	
	public Integer getSpuId() {
		return spuId;
	}
	public void setSpuId(Integer spuId) {
		this.spuId = spuId;
	}
	public String getEnterpriseSpu() {
		return enterpriseSpu;
	}
	public void setEnterpriseSpu(String enterpriseSpu) {
		this.enterpriseSpu = enterpriseSpu;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Float getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(Float marketPrice) {
		this.marketPrice = marketPrice;
	}
	public Integer getSpecIdOne() {
		return specIdOne;
	}
	public void setSpecIdOne(Integer specIdOne) {
		this.specIdOne = specIdOne;
	}
	public Integer getSpecIdTwo() {
		return specIdTwo;
	}
	public void setSpecIdTwo(Integer specIdTwo) {
		this.specIdTwo = specIdTwo;
	}
	public Integer getSpecIdThree() {
		return specIdThree;
	}
	public void setSpecIdThree(Integer specIdThree) {
		this.specIdThree = specIdThree;
	}
	public Integer getSpecIdFour() {
		return specIdFour;
	}
	public void setSpecIdFour(Integer specIdFour) {
		this.specIdFour = specIdFour;
	}
	public String getSpecOneValue() {
		return specOneValue;
	}
	public void setSpecOneValue(String specOneValue) {
		this.specOneValue = specOneValue;
	}
	public String getSpecTwoValue() {
		return specTwoValue;
	}
	public void setSpecTwoValue(String specTwoValue) {
		this.specTwoValue = specTwoValue;
	}
	public String getSpecThreeValue() {
		return specThreeValue;
	}
	public void setSpecThreeValue(String specThreeValue) {
		this.specThreeValue = specThreeValue;
	}
	public String getSpecFourValue() {
		return specFourValue;
	}
	public void setSpecFourValue(String specFourValue) {
		this.specFourValue = specFourValue;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public String getEnterpriseCode() {
		return enterpriseCode;
	}
	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}
	public List<Sku> getSkuList() {
		return skuList;
	}
	public void setSkuList(List<Sku> skuList) {
		this.skuList = skuList;
	}
	public Integer getBrandId() {
		return brandId;
	}
	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}
	public Float getAdvicePrice() {
		return advicePrice;
	}
	public void setAdvicePrice(Float advicePrice) {
		this.advicePrice = advicePrice;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public String getSpecOneName() {
		return specOneName;
	}
	public void setSpecOneName(String specOneName) {
		this.specOneName = specOneName;
	}
	public String getSpecTwoName() {
		return specTwoName;
	}
	public void setSpecTwoName(String specTwoName) {
		this.specTwoName = specTwoName;
	}
	public String getSpecThreeName() {
		return specThreeName;
	}
	public void setSpecThreeName(String specThreeName) {
		this.specThreeName = specThreeName;
	}
	public String getSpecFourName() {
		return specFourName;
	}
	public void setSpecFourName(String specFourName) {
		this.specFourName = specFourName;
	}
	public Integer getFromType() {
		return fromType;
	}
	public void setFromType(Integer fromType) {
		this.fromType = fromType;
	}
	public Integer getPurchasePrice() {
		return purchasePrice;
	}
	public void setPurchasePrice(Integer purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	public Integer getCreateUser() {
		return createUser;
	}
	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}
	public Integer getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(Integer updateUser) {
		this.updateUser = updateUser;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
}
